package com.wzz.seckillone.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzz.seckillone.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-11-08
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    void saveOrder(Order order);

    Order getOrderByOrderId(String orderId);

    Order getOrderByUserIdAndGoodsId(@Param("userId") String userId, @Param("goodsId") String goodsId);
}
